package com.java.multipledatasource.spring.proxy;

/**
 * @author hu
 * @version 1.0
 * @date 2021/1/5 0005 下午 5:51
 * @description
 */
public class ProxyUserAction  implements Action{
    private UserAction userAction;

    public ProxyUserAction(UserAction userAction) {
        this.userAction = userAction;
    }

    @Override
    public void action() {
        System.out.println("begin");
        userAction.action();
        System.out.println("end");
    }
}
